package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.mapper.CreatorCardMapper;
import com.example.model.entity.CreatorCard;
import com.example.service.CreatorCardService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 创作者卡片服务实现类
 */
@Service
public class CreatorCardServiceImpl extends ServiceImpl<CreatorCardMapper, CreatorCard> implements CreatorCardService {
    
    @Override
    public List<CreatorCard> listCreatorCards() {
        LambdaQueryWrapper<CreatorCard> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.orderByAsc(CreatorCard::getId);
        return list(queryWrapper);
    }
} 